You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/03/06 21:44:11 UTC

[11/41] incubator-mynewt-newt git commit: remove deadcode.

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/2f04e254
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/2f04e254
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/2f04e254

Branch: refs/heads/mynewt_1_0_0
Commit: 2f04e2541e8231327dc637bcdd472977e0266ee8
Parents: b3f044d
Author: Sterling Hughes <st...@runtime.io>
Authored: Sat Feb 11 15:50:10 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 6 13:33:23 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/2f04e254/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.
 	 */