Nosize.pm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # ex:ts=8 sw=4:
  2. # $OpenBSD: Nosize.pm,v 1.1 2013/10/13 18:23:35 espie Exp $
  3. #
  4. # Copyright (c) 2010-2013 Marc Espie <espie@openbsd.org>
  5. #
  6. # Permission to use, copy, modify, and distribute this software for any
  7. # purpose with or without fee is hereby granted, provided that the above
  8. # copyright notice and this permission notice appear in all copies.
  9. #
  10. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. use strict;
  18. use warnings;
  19. # stub package that never builds in memory
  20. package DPB::Heuristics::Nosize;
  21. sub new
  22. {
  23. my ($class, $state) = @_;
  24. bless {state => $state}, $class;
  25. }
  26. sub build_in_memory
  27. {
  28. return 0;
  29. }
  30. sub finished
  31. {
  32. }
  33. sub parse_size_file
  34. {
  35. }
  36. 1;