From 7a2c9107c32ce5538f30729c52e6244cb3328578 Mon Sep 17 00:00:00 2001 From: Nikita Ivanov <51688199+ViChyavIn@users.noreply.github.com> Date: Sat, 27 Mar 2021 18:05:03 +0500 Subject: [PATCH] Delete dublicate error (#1700) --- lib/gollum.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/gollum.rb b/lib/gollum.rb index 6ed22d42..6a76b3f2 100644 --- a/lib/gollum.rb +++ b/lib/gollum.rb @@ -17,22 +17,6 @@ module Gollum def self.assets_path ::File.expand_path('gollum/public', ::File.dirname(__FILE__)) end - - class Error < StandardError; - end - - class DuplicatePageError < Error - attr_accessor :dir - attr_accessor :existing_path - attr_accessor :attempted_path - - def initialize(dir, existing, attempted, message = nil) - @dir = dir - @existing_path = existing - @attempted_path = attempted - super(message || "Cannot write #{@dir}/#{@attempted_path}, found #{@dir}/#{@existing_path}.") - end - end class TemplateFilter @@filters = {}