1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-12-01 22:30:09 +02:00

Remove function constants and pass strings directly to logDebugParam().

The function names were only used once so creating constants for them was wasteful.
This commit is contained in:
David Steele
2016-05-26 09:09:42 -04:00
parent e7d4a25d6a
commit e2094c3d31
13 changed files with 61 additions and 199 deletions

View File

@@ -28,14 +28,6 @@ use BackRestDoc::Common::DocConfig;
use BackRestDoc::Common::DocManifest;
use BackRestDoc::Html::DocHtmlPage;
####################################################################################################################################
# Operation constants
####################################################################################################################################
use constant OP_DOC_HTML_SITE => 'DocHtmlSite';
use constant OP_DOC_HTML_SITE_NEW => OP_DOC_HTML_SITE . '->new';
use constant OP_DOC_HTML_SITE_PROCESS => OP_DOC_HTML_SITE . '->process';
####################################################################################################################################
# CONSTRUCTOR
####################################################################################################################################
@@ -62,7 +54,7 @@ sub new
) =
logDebugParam
(
OP_DOC_HTML_SITE_NEW, \@_,
__PACKAGE__ . '->new', \@_,
{name => 'oManifest'},
{name => 'strXmlPath'},
{name => 'strHtmlPath'},
@@ -102,7 +94,7 @@ sub process
my $self = shift;
# Assign function parameters, defaults, and log debug info
my $strOperation = logDebugParam(OP_DOC_HTML_SITE_PROCESS);
my $strOperation = logDebugParam(__PACKAGE__ . '->process');
# Copy the css file
my $strCssFileDestination = "$self->{strHtmlPath}/default.css";