Skip to content

Commit 1ca523c

Browse files
committed
Merge pull request #1404 from pguyot/w51/remove-unused-term_is_movable_boxed
Remove unused term_is_movable_boxed These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents abe99ef + 16698e6 commit 1ca523c

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/libAtomVM/term.h

-24
Original file line numberDiff line numberDiff line change
@@ -306,30 +306,6 @@ static inline bool term_is_boxed(term t)
306306
return ((t & 0x3) == 0x2);
307307
}
308308

309-
/**
310-
* @brief Checks if a term is a movable boxed value
311-
*
312-
* @details Returns \c true if a term is a boxed value that can be safely copied with memcpy.
313-
* @param t the term that will checked.
314-
* @return \c true if check succeeds, \c false otherwise.
315-
*/
316-
static inline bool term_is_movable_boxed(term t)
317-
{
318-
/* boxed: 10 */
319-
if ((t & 0x3) == 0x2) {
320-
const term *boxed_value = term_to_const_term_ptr(t);
321-
switch (boxed_value[0] & TERM_BOXED_TAG_MASK) {
322-
case 0x10:
323-
return true;
324-
325-
default:
326-
return false;
327-
}
328-
} else {
329-
return false;
330-
}
331-
}
332-
333309
/**
334310
* @brief Returns size of a boxed term from its header
335311
*

0 commit comments

Comments
 (0)