You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/12/14 19:57:34 UTC
incubator-mynewt-newt git commit: newt - Remove unused functions
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop bb1446aca -> 5bc0923e4
newt - Remove unused functions
These functions became obsolete when newt started executing commands
directly rather than invoking a shell.
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/5bc0923e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/5bc0923e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/5bc0923e
Branch: refs/heads/develop
Commit: 5bc0923e44a1239949929ec8ac4889ae335d4dba
Parents: bb1446a
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Dec 14 11:56:54 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed Dec 14 11:56:54 2016 -0800
----------------------------------------------------------------------
newt/toolchain/compiler.go | 21 ---------------------
1 file changed, 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/5bc0923e/newt/toolchain/compiler.go
----------------------------------------------------------------------
diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go
index 518c6d1..95275a5 100644
--- a/newt/toolchain/compiler.go
+++ b/newt/toolchain/compiler.go
@@ -307,17 +307,6 @@ func (c *Compiler) SkipSourceFile(srcFile string) error {
// Generates a string consisting of all the necessary include path (-I)
// options. The result is sorted and contains no duplicate paths.
-func (c *Compiler) includesString() string {
- if len(c.info.Includes) == 0 {
- return ""
- }
-
- includes := util.SortFields(c.info.Includes...)
- return "-I" + strings.Join(includes, " -I")
-}
-
-// Generates a string consisting of all the necessary include path (-I)
-// options. The result is sorted and contains no duplicate paths.
func (c *Compiler) includesStrings() []string {
if len(c.info.Includes) == 0 {
return nil
@@ -334,11 +323,6 @@ func (c *Compiler) includesStrings() []string {
return tokens
}
-func (c *Compiler) cflagsString() string {
- cflags := util.SortFields(c.info.Cflags...)
- return strings.Join(cflags, " ")
-}
-
func (c *Compiler) cflagsStrings() []string {
cflags := util.SortFields(c.info.Cflags...)
return cflags
@@ -349,11 +333,6 @@ func (c *Compiler) aflagsStrings() []string {
return aflags
}
-func (c *Compiler) lflagsString() string {
- lflags := util.SortFields(c.info.Lflags...)
- return strings.Join(lflags, " ")
-}
-
func (c *Compiler) lflagsStrings() []string {
lflags := util.SortFields(c.info.Lflags...)
return lflags