Skip to content

Commit

Permalink
remove deadcode
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Apr 5, 2024
1 parent 347cf39 commit a37a07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/core/JsonParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import {
isSameConstructor,
isSameConstructorOrExtensionOf,
isSameConstructorOrExtensionOfNoObject,
mapClassPropertyToVirtualProperty,
mapVirtualPropertiesToClassProperties,
mapVirtualPropertyToClassProperty, sortMappersByOrder
} from '../util';
import {
get_metadata,
map_class_property_to_virtual_property,
make_metadata_keys_with_context} from 'jackson-wasm';
import {
ClassType,
Expand Down Expand Up @@ -701,7 +701,7 @@ export class JsonParser<T> {
continue;
}
}
const virtualProperty = mapClassPropertyToVirtualProperty(currentMainCreator, key, context);
const virtualProperty = map_class_property_to_virtual_property(currentMainCreator, key, context);
return {
found: true,
value: deserializer.mapper(virtualProperty, value, context),
Expand Down
19 changes: 0 additions & 19 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { DefaultContextGroup } from './core/DefaultContextGroup';

import {
MakeMetadataKeyWithContextOptions,
map_class_property_to_virtual_property,
get_metadata,
make_metadata_key_with_context,
make_metadata_keys_with_context} from 'jackson-wasm';
Expand Down Expand Up @@ -645,24 +644,6 @@ export const classPropertiesToVirtualPropertiesMapping = (
return propertiesMapping;
};

// /**
// * @internal
// */
// export const mapClassPropertyToVirtualProperty = (
// target: Record<string, any>,
// key: string,
// context: JsonStringifierParserCommonContext<any>
// ): string => map_class_properties_to_virtual_properties(target, [key], context)[0];

/**
* @internal
*/
export const mapClassPropertyToVirtualProperty = (
target: Record<string, any>,
key: string,
context: JsonStringifierParserCommonContext<any>
): string => map_class_property_to_virtual_property(target, key, context);

/**
* @internal
*/
Expand Down

0 comments on commit a37a07e

Please sign in to comment.