lib/qiita_trend/cache.rb in qiita_trend-0.2.7 vs lib/qiita_trend/cache.rb in qiita_trend-0.2.8
- old
+ new
@@ -31,14 +31,7 @@
# キャッシュファイルが存在するか?
def cached?
File.exist?(@full_path)
end
-
- # キャッシュファイルをクリアする
- def clear_cache
- File.delete(@full_path) if cached?
- rescue StandardError => e
- raise e.class, 'キャッシュファイルの削除に失敗しました'
- end
end
end