Skip to content

Commit f80082f

Browse files
Luiskyrzr
authored andcommitted
libs2/tf: SWPROT-8720: removed unused __codasip__ checks (SiliconLabsSoftware#57)
(cherry picked from commit 31d1548bf29264b269c29b2de797ca851835dae4) Forwarded: SiliconLabsSoftware#57 Relate-to: SiliconLabsSoftware#50 Signed-off-by: Philippe Coval <[email protected]>
1 parent e5ee2db commit f80082f

File tree

1 file changed

+0
-26
lines changed
  • applications/zpc/components/zwave/zwave_transports/s2/libs/zw-libs2/TestFramework/unity

1 file changed

+0
-26
lines changed

applications/zpc/components/zwave/zwave_transports/s2/libs/zw-libs2/TestFramework/unity/unity.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,6 @@ void UnityPrintNumberByStyle(const _U_SINT number, const UNITY_DISPLAY_STYLE_T s
168168
/// basically do an itoa using as little ram as possible
169169
void UnityPrintNumber(const _U_SINT number_to_print)
170170
{
171-
#ifdef __codasip__
172-
_U_UINT nibbles = 0;
173-
_U_UINT tmp;
174-
tmp = number_to_print;
175-
do
176-
{
177-
tmp >>= 4;
178-
nibbles++;
179-
}
180-
while (tmp > 0);
181-
UnityPrintNumberHex(number_to_print , nibbles);
182-
#else
183171
_U_SINT divisor = 1;
184172
_U_SINT next_divisor;
185173
_U_UINT number;
@@ -218,25 +206,12 @@ void UnityPrintNumber(const _U_SINT number_to_print)
218206
divisor /= 10;
219207
}
220208
while (divisor > 0);
221-
#endif /* __codasip__ */
222209
}
223210

224211
//-----------------------------------------------
225212
/// basically do an itoa using as little ram as possible
226213
void UnityPrintNumberUnsigned(const _U_UINT number)
227214
{
228-
#ifdef __codasip__
229-
_U_UINT nibbles = 0;
230-
_U_UINT tmp;
231-
tmp = number;
232-
do
233-
{
234-
tmp = tmp >> 4;
235-
nibbles++;
236-
}
237-
while (tmp > 0);
238-
UnityPrintNumberHex(number, nibbles);
239-
#else
240215
_U_UINT divisor = 1;
241216
_U_UINT next_divisor;
242217
// figure out initial divisor
@@ -256,7 +231,6 @@ void UnityPrintNumberUnsigned(const _U_UINT number)
256231
divisor /= 10;
257232
}
258233
while (divisor > 0);
259-
#endif /* __codasip__ */
260234
}
261235

262236
//-----------------------------------------------

0 commit comments

Comments
 (0)