]> granicus.if.org Git - check/commitdiff
check_log.c: remove unnecessary checks for CK_ENV
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sat, 4 Jan 2014 18:34:01 +0000 (18:34 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sat, 4 Jan 2014 18:34:01 +0000 (18:34 +0000)
this code is unnecessary, as srunner_register_lfun will
determine the real print mode before stdout_lfun gets called.
That is, CK_ENV will never be passed.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1023 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_log.c

index 49eb0d85042535dc46a545e7d6c89a5e0a1f77cf..d17b84f20d89bfeccb0cf5564c5cd5cd42b52db4 100644 (file)
@@ -169,10 +169,6 @@ void stdout_lfun (SRunner *sr, FILE *file, enum print_output printmode,
                  void *obj, enum cl_event evt)
 {
   Suite *s;
-  
-  if (printmode == CK_ENV) {
-    printmode = get_env_printmode();
-  }
 
   switch (evt) {
   case CLINITLOG_SR: