Skip to content
Browse files

Revert "Merge pull request #33 from djinn/feature/query_colors"

This reverts commit abff58d, reversing
changes made to 239875f.
  • Loading branch information...
1 parent abff58d commit b82d5b62e3ebaf38ccfd094701fa9bd046e806e3 @moollaza moollaza committed Oct 23, 2013
Showing with 3 additions and 24 deletions.
  1. +2 −11 lib/App/DuckPAN/Query.pm
  2. +1 −13 lib/App/DuckPAN/Web.pm
View
13 lib/App/DuckPAN/Query.pm
@@ -5,17 +5,8 @@ use Moo;
my $query;
my $history_path;
-use Env qw( DP_NOCOLOR);
-# By setting the environment variable DP_NOCOLOR or ANSI_COLORS_DISABLED
-# change the behaviour of query printer on console.
-if ($DP_NOCOLOR) {
- require Data::Printer;
- import Data::Printer colored => 0;
-}
-else {
- require Data::Printer;
- import Data::Printer;
-}
+
+use Data::Printer;
use POE qw( Wheel::ReadLine );
sub run {
View
14 lib/App/DuckPAN/Web.pm
@@ -10,26 +10,14 @@ use Plack::Response;
use HTML::Entities;
use HTML::TreeBuilder;
use HTML::Element;
+use Data::Printer;
use IO::All -utf8;
use HTTP::Request;
use LWP::UserAgent;
use URI::Escape;
use JSON;
use Data::Dumper;
-use Env qw( DP_NOCOLOR);
-# By setting the environment variable DP_NOCOLOR or ANSI_COLORS_DISABLED
-# change the behaviour of query printer on console.
-if ($DP_NOCOLOR) {
- require Data::Printer;
- import Data::Printer colored => 0;
-}
-else {
- require Data::Printer;
- import Data::Printer;
-}
-
-
has blocks => ( is => 'ro', required => 1 );
has page_root => ( is => 'ro', required => 1 );
has page_spice => ( is => 'ro', required => 1 );

0 comments on commit b82d5b6

Please sign in to comment.
Something went wrong with that request. Please try again.