Skip to content

Commit f07f7bf

Browse files
committedDec 20, 2014
Remove unused Conpherence sprites
Summary: These were refactored out a while ago Test Plan: Grep codebase, use Conpherence on desktop, mobile. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11023
1 parent 0ce08b4 commit f07f7bf

33 files changed

+0
-204
lines changed
 

‎resources/celerity/map.php

-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@
148148
'rsrc/css/phui/phui-workpanel-view.css' => '198c7e6c',
149149
'rsrc/css/sprite-apps-large.css' => '20ec0cc0',
150150
'rsrc/css/sprite-apps.css' => 'd5baed0f',
151-
'rsrc/css/sprite-conpherence.css' => '3b4a0487',
152151
'rsrc/css/sprite-docs.css' => '5f65d0da',
153152
'rsrc/css/sprite-gradient.css' => '4bdb98a7',
154153
'rsrc/css/sprite-login.css' => 'a355d921',
@@ -817,7 +816,6 @@
817816
'setup-issue-css' => '8f852bc0',
818817
'sprite-apps-css' => 'd5baed0f',
819818
'sprite-apps-large-css' => '20ec0cc0',
820-
'sprite-conpherence-css' => '3b4a0487',
821819
'sprite-docs-css' => '5f65d0da',
822820
'sprite-gradient-css' => '4bdb98a7',
823821
'sprite-login-css' => 'a355d921',
-263 Bytes
Binary file not shown.
-272 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-886 Bytes
Binary file not shown.
-895 Bytes
Binary file not shown.
-177 Bytes
Binary file not shown.
-199 Bytes
Binary file not shown.
-385 Bytes
Binary file not shown.
-410 Bytes
Binary file not shown.
-1005 Bytes
Binary file not shown.
-965 Bytes
Binary file not shown.
Binary file not shown.
-1.1 KB
Binary file not shown.
-418 Bytes
Binary file not shown.
-421 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.67 KB
Binary file not shown.
-1.56 KB
Binary file not shown.
-306 Bytes
Binary file not shown.
-295 Bytes
Binary file not shown.
-776 Bytes
Binary file not shown.
-923 Bytes
Binary file not shown.
-1.63 KB
Binary file not shown.
-1.51 KB
Binary file not shown.
-1.84 KB
Binary file not shown.
-1.45 KB
Binary file not shown.

‎resources/sprite/manifest/conpherence.json

-81
This file was deleted.

‎scripts/celerity/generate_sprites.php

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
$sheets = array(
3030
'menu' => $generator->buildMenuSheet(),
3131
'apps' => $generator->buildAppsSheet(),
32-
'conpherence' => $generator->buildConpherenceSheet(),
3332
'apps-large' => $generator->buildAppsLargeSheet(),
3433
'payments' => $generator->buildPaymentsSheet(),
3534
'tokens' => $generator->buildTokenSheet(),

‎src/applications/celerity/CeleritySpriteGenerator.php

-45
Original file line numberDiff line numberDiff line change
@@ -148,51 +148,6 @@ public function buildPaymentsSheet() {
148148
return $sheet;
149149
}
150150

151-
152-
public function buildConpherenceSheet() {
153-
$name = 'conpherence';
154-
$icons = $this->getDirectoryList($name.'_1x');
155-
$scales = array(
156-
'1x' => 1,
157-
'2x' => 2,
158-
);
159-
$template = id(new PhutilSprite())
160-
->setSourceSize(32, 32);
161-
162-
$sprites = array();
163-
foreach ($icons as $icon) {
164-
$color = preg_match('/_on/', $icon) ? 'on' : 'off';
165-
166-
$prefix = $name.'_';
167-
168-
$sprite = id(clone $template)
169-
->setName($prefix.$icon);
170-
171-
$tcss = array();
172-
$tcss[] = '.'.$prefix.$icon;
173-
if ($color == 'on') {
174-
$class = str_replace('_on', '_off', $prefix.$icon);
175-
$tcss[] = '.device-desktop .'.$class.':hover ';
176-
}
177-
178-
$sprite->setTargetCSS(implode(', ', $tcss));
179-
180-
foreach ($scales as $scale_key => $scale) {
181-
$path = $this->getPath($prefix.$scale_key.'/'.$icon.'.png');
182-
$sprite->setSourceFile($path, $scale);
183-
}
184-
$sprites[] = $sprite;
185-
}
186-
187-
$sheet = $this->buildSheet($name, true);
188-
$sheet->setScales($scales);
189-
foreach ($sprites as $sprite) {
190-
$sheet->addSprite($sprite);
191-
}
192-
193-
return $sheet;
194-
}
195-
196151
public function buildDocsSheet() {
197152
$icons = $this->getDirectoryList('docs_1x');
198153
$scales = array(

‎webroot/rsrc/css/sprite-conpherence.css

-75
This file was deleted.

0 commit comments

Comments
 (0)
Failed to load comments.