diff options
-rw-r--r-- | bitbake/lib/bb/data.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index c56965c602..1a2946f943 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -78,59 +78,6 @@ def initVar(var, d): | |||
78 | """Non-destructive var init for data structure""" | 78 | """Non-destructive var init for data structure""" |
79 | d.initVar(var) | 79 | d.initVar(var) |
80 | 80 | ||
81 | |||
82 | def setVar(var, value, d): | ||
83 | """Set a variable to a given value""" | ||
84 | d.setVar(var, value) | ||
85 | |||
86 | |||
87 | def getVar(var, d, exp = False): | ||
88 | """Gets the value of a variable""" | ||
89 | return d.getVar(var, exp) | ||
90 | |||
91 | |||
92 | def renameVar(key, newkey, d): | ||
93 | """Renames a variable from key to newkey""" | ||
94 | d.renameVar(key, newkey) | ||
95 | |||
96 | def delVar(var, d): | ||
97 | """Removes a variable from the data set""" | ||
98 | d.delVar(var) | ||
99 | |||
100 | def appendVar(var, value, d): | ||
101 | """Append additional value to a variable""" | ||
102 | d.appendVar(var, value) | ||
103 | |||
104 | def setVarFlag(var, flag, flagvalue, d): | ||
105 | """Set a flag for a given variable to a given value""" | ||
106 | d.setVarFlag(var, flag, flagvalue) | ||
107 | |||
108 | def getVarFlag(var, flag, d): | ||
109 | """Gets given flag from given var""" | ||
110 | return d.getVarFlag(var, flag, False) | ||
111 | |||
112 | def delVarFlag(var, flag, d): | ||
113 | """Removes a given flag from the variable's flags""" | ||
114 | d.delVarFlag(var, flag) | ||
115 | |||
116 | def setVarFlags(var, flags, d): | ||
117 | """Set the flags for a given variable | ||
118 | |||
119 | Note: | ||
120 | setVarFlags will not clear previous | ||
121 | flags. Think of this method as | ||
122 | addVarFlags | ||
123 | """ | ||
124 | d.setVarFlags(var, flags) | ||
125 | |||
126 | def getVarFlags(var, d): | ||
127 | """Gets a variable's flags""" | ||
128 | return d.getVarFlags(var) | ||
129 | |||
130 | def delVarFlags(var, d): | ||
131 | """Removes a variable's flags""" | ||
132 | d.delVarFlags(var) | ||
133 | |||
134 | def keys(d): | 81 | def keys(d): |
135 | """Return a list of keys in d""" | 82 | """Return a list of keys in d""" |
136 | return d.keys() | 83 | return d.keys() |