Permalink
Browse files

Merge branch 'mattrajca-removed_freeze_size'

  • Loading branch information...
2 parents 0b29d99 + b1f9343 commit e8d5f3cbbd075c45a9808de1fc06aa591613da70 @leto leto committed Dec 25, 2010
Showing with 0 additions and 43 deletions.
  1. +0 −18 include/parrot/pmc_freeze.h
  2. +0 −25 src/packfile/object_serialization.c
@@ -141,12 +141,6 @@ UINTVAL Parrot_freeze_pbc_size(PARROT_INTERP,
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
-UINTVAL Parrot_freeze_size(PARROT_INTERP, ARGIN(PMC *pmc))
- __attribute__nonnull__(1)
- __attribute__nonnull__(2);
-
-PARROT_EXPORT
-PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
PMC * Parrot_freeze_strings(PARROT_INTERP, ARGIN(PMC *pmc))
__attribute__nonnull__(1)
@@ -200,9 +194,6 @@ void Parrot_visit_loop_visit(PARROT_INTERP, ARGIN(PMC *info))
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(pmc) \
, PARROT_ASSERT_ARG(pf))
-#define ASSERT_ARGS_Parrot_freeze_size __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
- PARROT_ASSERT_ARG(interp) \
- , PARROT_ASSERT_ARG(pmc))
#define ASSERT_ARGS_Parrot_freeze_strings __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(pmc))
@@ -265,12 +256,6 @@ UINTVAL Parrot_freeze_pbc_size(PARROT_INTERP,
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
-UINTVAL Parrot_freeze_size(PARROT_INTERP, ARGIN(PMC *pmc))
- __attribute__nonnull__(1)
- __attribute__nonnull__(2);
-
-PARROT_EXPORT
-PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
PMC * Parrot_freeze_strings(PARROT_INTERP, ARGIN(PMC *pmc))
__attribute__nonnull__(1)
@@ -328,9 +313,6 @@ void Parrot_visit_loop_visit(PARROT_INTERP, ARGIN(PMC *info))
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(pmc) \
, PARROT_ASSERT_ARG(pf))
-#define ASSERT_ARGS_Parrot_freeze_size __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
- PARROT_ASSERT_ARG(interp) \
- , PARROT_ASSERT_ARG(pmc))
#define ASSERT_ARGS_Parrot_freeze_strings __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(pmc))
@@ -96,31 +96,6 @@ Parrot_freeze_pbc(PARROT_INTERP, ARGIN(PMC *pmc), ARGIN(const PackFile_ConstTabl
/*
-=item C<UINTVAL Parrot_freeze_size(PARROT_INTERP, PMC *pmc)>
-
-Gets the size of an image to be frozen without allocating a large buffer.
-
-=cut
-
-*/
-
-PARROT_EXPORT
-PARROT_WARN_UNUSED_RESULT
-UINTVAL
-Parrot_freeze_size(PARROT_INTERP, ARGIN(PMC *pmc))
-{
- ASSERT_ARGS(Parrot_freeze_size)
- PMC *pmc_result;
- PMC * const visitor = Parrot_pmc_new(interp, enum_class_ImageIOSize);
- VTABLE_set_pmc(interp, visitor, pmc);
- pmc_result = VTABLE_get_pmc(interp, visitor);
-
- return VTABLE_get_integer(interp, pmc_result);
-}
-
-
-/*
-
=item C<UINTVAL Parrot_freeze_pbc_size(PARROT_INTERP, PMC *pmc, const
PackFile_ConstTable *pf)>

0 comments on commit e8d5f3c

Please sign in to comment.