This is a static copy of a profile reportHome
graphics/private/inputcheck>LocalCheckForDeprecation (40 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:33 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/inputcheck.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
465 | end | 40 | 0 s | 0% |  |
460 | if ~isempty(warningMsg) | 40 | 0 s | 0% |  |
458 | end | 40 | 0 s | 0% |  |
453 | if any(strcmpi(deviceToCheck, ... | 40 | 0 s | 0% |  |
452 | deprecatingDevices = {'pkm', '... | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 34 |
Non-code lines (comments, blank lines) | 13 |
Code lines (lines that can run) | 21 |
Code lines that did run | 12 |
Code lines that did not run | 9 |
Coverage (did run/can run) | 57.14 % |
Function listing
time calls line
432 function LocalCheckForDeprecation(pj, destination)
40 433 warningID = '';
40 434 warningMsg = '';
40 435 deviceToCheck = pj.Driver;
436
40 437 moreInfo = sprintf('For more information, please see the <a href="http://www.mathworks.com/support/contact_us/dev/obsoleteprintdevices.html?device=%s">obsolete output formats</a> resource on the MathWorks web site.', deviceToCheck);
438
40 439 if strcmpi(deviceToCheck, 'ill')
440 % Native illustrator support will be removed
441 warningID = 'MATLAB:print:Illustrator:DeprecatedDevice';
442 warningMsg = 'The ''-dill'' print device will be removed in a future release. Use Encapsulated PostScript (''-depsc'') instead.';
443
40 444 elseif (strcmpi(pj.DriverClass, 'GS') && strcmpi('P', destination)) ...
445 || strcmpi(deviceToCheck, 'hpgl')
446 % some older printer devices are being deprecated
447 warningID = 'MATLAB:Print:Deprecate:PrinterFormat';
448 warningMsg = sprintf('The ''%s'' print device will be removed in a future release of MATLAB. %s', ...
449 deviceToCheck, moreInfo);
40 450 else
451 % warn that certain graphic export formats are going away
40 452 deprecatingDevices = {'pkm', 'pkmraw', 'tifflzw'};
40 453 if any(strcmpi(deviceToCheck, deprecatingDevices))
454 warningID = 'MATLAB:Print:Deprecate:GraphicFormat';
455 warningMsg = sprintf( 'The ''%s'' graphic export format will be removed in a future release of MATLAB. %s', ...
456 deviceToCheck, moreInfo);
457 end
40 458 end
459
40 460 if ~isempty(warningMsg)
461 warning(warningID, warningMsg);
462 end
463
464 %EOFunction LocalCheckForDeprecation
40 465 end