From 42b24c20dde2dcd65f0dd4375cde8c2feb4789a0 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 26 May 2023 15:23:44 +0100 Subject: [PATCH] coded.*FvPatchField: Removed unused constructor from patch and internalField --- .../codedFixedValueFvPatchFieldTemplate.C | 17 ----------------- .../codedFixedValueFvPatchFieldTemplate.H | 7 ------- .../codedMixedFvPatchFieldTemplate.C | 17 ----------------- .../codedMixedFvPatchFieldTemplate.H | 7 ------- .../fvPatchFields/fvPatchField/fvPatchField.H | 6 ------ 5 files changed, 54 deletions(-) diff --git a/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.C b/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.C index a01c251794..5989b0c556 100644 --- a/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.C +++ b/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.C @@ -83,23 +83,6 @@ const char* const ${typeName}FixedValueFvPatch${FieldType}::SHA1sum = // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -${typeName}FixedValueFvPatch${FieldType}:: -${typeName}FixedValueFvPatch${FieldType} -( - const fvPatch& p, - const DimensionedField<${TemplateType}, volMesh>& iF -) -: - fixedValueFvPatchField<${TemplateType}>(p, iF) -{ - if (${verbose:-false}) - { - Info<<"construct ${typeName} sha1: ${SHA1sum}" - " from patch/DimensionedField\n"; - } -} - - ${typeName}FixedValueFvPatch${FieldType}:: ${typeName}FixedValueFvPatch${FieldType} ( diff --git a/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.H b/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.H index 6e712b4003..19fb50ff34 100644 --- a/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.H +++ b/etc/codeTemplates/dynamicCode/codedFixedValueFvPatchFieldTemplate.H @@ -61,13 +61,6 @@ public: // Constructors - //- Construct from patch and internal field - ${typeName}FixedValueFvPatch${FieldType} - ( - const fvPatch&, - const DimensionedField<${TemplateType}, volMesh>& - ); - //- Construct from patch, internal field and dictionary ${typeName}FixedValueFvPatch${FieldType} ( diff --git a/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.C b/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.C index a017ac82c9..e1759d7192 100644 --- a/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.C +++ b/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.C @@ -83,23 +83,6 @@ const char* const ${typeName}MixedValueFvPatch${FieldType}::SHA1sum = // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -${typeName}MixedValueFvPatch${FieldType}:: -${typeName}MixedValueFvPatch${FieldType} -( - const fvPatch& p, - const DimensionedField<${TemplateType}, volMesh>& iF -) -: - mixedFvPatchField<${TemplateType}>(p, iF) -{ - if (${verbose:-false}) - { - Info<<"construct ${typeName} sha1: ${SHA1sum}" - " from patch/DimensionedField\n"; - } -} - - ${typeName}MixedValueFvPatch${FieldType}:: ${typeName}MixedValueFvPatch${FieldType} ( diff --git a/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.H b/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.H index 25e7c0c9a7..b2de5404c2 100644 --- a/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.H +++ b/etc/codeTemplates/dynamicCode/codedMixedFvPatchFieldTemplate.H @@ -61,13 +61,6 @@ public: // Constructors - //- Construct from patch and internal field - ${typeName}MixedValueFvPatch${FieldType} - ( - const fvPatch&, - const DimensionedField<${TemplateType}, volMesh>& - ); - //- Construct from patch, internal field and dictionary ${typeName}MixedValueFvPatch${FieldType} ( diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H index 9fccc1d362..75a32d301f 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H @@ -623,12 +623,6 @@ public: PatchTypeField, typePatchTypeField) \ \ addRemovableToRunTimeSelectionTable \ - ( \ - PatchTypeField, \ - typePatchTypeField, \ - patch \ - ); \ - addRemovableToRunTimeSelectionTable \ ( \ PatchTypeField, \ typePatchTypeField, \