remove deadcode.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/30b0d8e2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/30b0d8e2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/30b0d8e2 Branch: refs/heads/master Commit: 30b0d8e236bf76467b37351d4fb49427a8a12d12 Parents: a6d1a66 Author: Sterling Hughes <[email protected]> Authored: Sat Feb 11 15:50:10 2017 -0800 Committer: Sterling Hughes <[email protected]> Committed: Sat Feb 11 15:50:10 2017 -0800 ---------------------------------------------------------------------- newt/cli/pkg_cmds.go | 10 ---------- 1 file changed, 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/30b0d8e2/newt/cli/pkg_cmds.go ---------------------------------------------------------------------- diff --git a/newt/cli/pkg_cmds.go b/newt/cli/pkg_cmds.go index 13937d6..d04691e 100644 --- a/newt/cli/pkg_cmds.go +++ b/newt/cli/pkg_cmds.go @@ -29,7 +29,6 @@ import ( "github.com/spf13/cobra" "mynewt.apache.org/newt/newt/interfaces" "mynewt.apache.org/newt/newt/newtutil" - "mynewt.apache.org/newt/newt/pkg" "mynewt.apache.org/newt/newt/project" "mynewt.apache.org/newt/util" ) @@ -139,15 +138,6 @@ func pkgMoveCmd(cmd *cobra.Command, args []string) { NewtUsage(cmd, util.ChildNewtError(err)) } - dstPkg, err := pkg.LoadLocalPackage(repo, pkgName) - if err != nil { - os.Chdir(wd) - NewtUsage(cmd, err) - } - - dstPkg.SetName(pkgName) - dstPkg.Save() - /* If the last element of the package path changes, rename the include * directory. */
