Skip to content

Commit

Permalink
Issue #1515: remove unused attribute CheckEncodingColumns.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Dec 21, 2021
1 parent 65f280f commit a2a6703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
11 changes: 0 additions & 11 deletions Kernel/System/MigrateFromOTRS/CloneDB/Backend.pm
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ sub new {
# allocate new hash for object
my $Self = bless {}, $Class;

my %CheckEncodingColumns = (
'article_data_mime.a_body' => 1,
'article_data_mime_attachment.filename' => 1,
);

# create all registered backend modules
my $MainObject = $Kernel::OM->Get('Kernel::System::Main');
for my $DBType (qw(mysql oracle postgresql)) {
Expand All @@ -93,12 +88,6 @@ sub new {
Objects => [$BackendModule],
);

$Kernel::OM->ObjectParamAdd(
$BackendModule => {
CheckEncodingColumns => \%CheckEncodingColumns,
},
);

# create a backend object
my $BackendObject = $Kernel::OM->Get($BackendModule);

Expand Down
9 changes: 2 additions & 7 deletions Kernel/System/MigrateFromOTRS/CloneDB/Driver/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,9 @@ A base module for drivers.
=head2 new()
use Kernel::System::ObjectManager;
local $Kernel::OM = Kernel::System::ObjectManager->new();
The constructor of the base object is usually called when the derived objects are created.
But there can be direct instances.
$Kernel::OM->ObjectParamAdd(
'Kernel::System::MigrateFromOTRS::CloneDB::Driver::Base' => {
CheckEncodingColumns => $CheckEncodingColumns,
},
);
my $CloneDBBaseObject = $Kernel::OM->Get('Kernel::System::MigrateFromOTRS::CloneDB::Driver::Base');
=cut
Expand Down

0 comments on commit a2a6703

Please sign in to comment.