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
This commit is contained in:
@@ -148,51 +148,6 @@ final class CeleritySpriteGenerator {
|
||||
return $sheet;
|
||||
}
|
||||
|
||||
|
||||
public function buildConpherenceSheet() {
|
||||
$name = 'conpherence';
|
||||
$icons = $this->getDirectoryList($name.'_1x');
|
||||
$scales = array(
|
||||
'1x' => 1,
|
||||
'2x' => 2,
|
||||
);
|
||||
$template = id(new PhutilSprite())
|
||||
->setSourceSize(32, 32);
|
||||
|
||||
$sprites = array();
|
||||
foreach ($icons as $icon) {
|
||||
$color = preg_match('/_on/', $icon) ? 'on' : 'off';
|
||||
|
||||
$prefix = $name.'_';
|
||||
|
||||
$sprite = id(clone $template)
|
||||
->setName($prefix.$icon);
|
||||
|
||||
$tcss = array();
|
||||
$tcss[] = '.'.$prefix.$icon;
|
||||
if ($color == 'on') {
|
||||
$class = str_replace('_on', '_off', $prefix.$icon);
|
||||
$tcss[] = '.device-desktop .'.$class.':hover ';
|
||||
}
|
||||
|
||||
$sprite->setTargetCSS(implode(', ', $tcss));
|
||||
|
||||
foreach ($scales as $scale_key => $scale) {
|
||||
$path = $this->getPath($prefix.$scale_key.'/'.$icon.'.png');
|
||||
$sprite->setSourceFile($path, $scale);
|
||||
}
|
||||
$sprites[] = $sprite;
|
||||
}
|
||||
|
||||
$sheet = $this->buildSheet($name, true);
|
||||
$sheet->setScales($scales);
|
||||
foreach ($sprites as $sprite) {
|
||||
$sheet->addSprite($sprite);
|
||||
}
|
||||
|
||||
return $sheet;
|
||||
}
|
||||
|
||||
public function buildDocsSheet() {
|
||||
$icons = $this->getDirectoryList('docs_1x');
|
||||
$scales = array(
|
||||
|
||||
Reference in New Issue
Block a user