diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-12 16:33:17 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-12 17:31:38 +0000 |
commit | df98fe4dfff0a707c9800050f658100c57783654 (patch) | |
tree | fd39aa3cf82584fbf784334da41265b5f7dbc43c /perllib/FixMyStreet/App/Model/PhotoSet.pm | |
parent | de6df5e30d4801afc560e93c833a692a117b9547 (diff) |
Factor multiple photo details into nicer function.
Remove get_photo_params, which only looked at the first photo,
make explicit when we're doing that using `.first`.
Diffstat (limited to 'perllib/FixMyStreet/App/Model/PhotoSet.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Model/PhotoSet.pm | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Model/PhotoSet.pm b/perllib/FixMyStreet/App/Model/PhotoSet.pm index 9abe1dce7..35a7e8a53 100644 --- a/perllib/FixMyStreet/App/Model/PhotoSet.pm +++ b/perllib/FixMyStreet/App/Model/PhotoSet.pm @@ -292,11 +292,6 @@ sub _rotate_image { } - - - -# NB: These 2 subs stolen from A::C::Photo, should be purged from there! -# # Shrinks a picture to the specified size, but keeping in proportion. sub _shrink { my ($photo, $size) = @_; |