Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Chessa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Síle Ekaterin Liszka
Chessa
Commits
7012db8c
Commit
7012db8c
authored
2 years ago
by
Síle Ekaterin Liszka
Browse files
Options
Downloads
Patches
Plain Diff
Chessa::URI::Plugin::Default: remove unused code
parent
3b3e1473
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Chessa/URI/Plugin/Default.pm
+1
-9
1 addition, 9 deletions
scripts/Chessa/URI/Plugin/Default.pm
with
1 addition
and
9 deletions
scripts/Chessa/URI/Plugin/Default.pm
+
1
−
9
View file @
7012db8c
...
...
@@ -13,9 +13,6 @@ use Encode qw(encode);
use
XML::
XPath
;
use
constant
{
SZ_KILOBYTE
=>
1024
,
SZ_MEGABYTE
=>
1024
**
2
,
SZ_GIGABYTE
=>
1024
**
3
,
name
=>
'
Default
',
};
...
...
@@ -108,7 +105,7 @@ sub head {
},
);
}
else
{
return
if
(
!
defined
(
$size
)
||
(
(
$size
<
SZ_MEGABYTE
)
&&
(
$type
=~
m!^image/!
)));
return
if
(
!
defined
(
$size
)
||
(
$size
<
(
10
*
(
1024
**
2
)
)));
$on_info
->
(
$self
->
{
msg
}('
Type
',
$type
)
.
'
'
.
$self
->
{
msg
}('
Size
',
$self
->
humanize
(
$size
))
.
...
...
@@ -117,11 +114,6 @@ sub head {
}
}
my
@scale
=
(
[
SZ_GIGABYTE
,
'
GB
'],
[
SZ_MEGABYTE
,
'
MB
'],
[
SZ_KILOBYTE
,
'
kB
'],
);
my
@units
=
split
//
,
'
kMGTPEZY
';
sub
humanize
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment